// 放置所有的路由分发配置
const express = require('express');
const router = express.Router();

// 1.配置登录页面操作
router.get('/login', require('./user-router/login'));
// conlogin
// 2.登录操作
router.post('/conlogin', require('./user-router/conlogin'));
// 3.进入用户列表
router.get('/userlist', require('./user-router/userlist'));
// 4.删除操作
router.post('/deleteuser', require('./user-router/deleteuser'));
// 5.添加用户的页面
router.get('/adduser', require('./user-router/adduser'));
// 6.添加用户的接口/doaddUser
router.post('/doadduser', require('./user-router/doadduser'));
// 7.修改页面edituser
router.get('/edituser', require('./user-router/edituser'));
// 8.修改用户doedituser
router.post('/doedituser/:userId', require('./user-router/doedituser'));
// 9.检索操作searchuser
router.get('/searchuser', require('./user-router/searchuser'));
// 10.退出操作signout
router.get('/signout', require('./user-router/signout'));


module.exports = router;